import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;

public final class b extends bk
{

    public h a;
    public o b;
    public String c;

    public b(h h1, int i, int j, int k, o o1, String s)
    {
        super(i, j, k, 0);
        a = h1;
        b = o1;
        c = s;
    }

    public final void a(ba ba1, Graphics g, boolean flag)
    {
        o o1 = b.a(flag);
        g.translate(super.d, super.e);
        o1.a(ba1, g, super.f, super.g, false);
        Font font = o1.j;
        g.setColor(o1.n);
        g.setFont(font);
        int i = 0;
        switch(o1.e & 0x32)
        {
        case 2: // '\002'
            i = (super.g - o1.h() - font.getHeight()) / 2;
            break;

        case 32: // ' '
            i = super.g - o1.h() - font.getHeight();
            break;
        }
        g.drawString(c, 0, ce.d + i, 20);
        g.translate(-super.d - o1.c(), -super.e - o1.e());
    }
}